<script>
export default {
  globalConfig: {
    usingComponents: {
      'van-tag': 'vant-weapp/dist/tag/index',
      'van-search': 'vant-weapp/dist/search/index',
      'van-notice-bar': 'vant-weapp/dist/notice-bar/index',
      'van-loading': 'vant-weapp/dist/loading/index',
      'van-field': 'vant-weapp/dist/field/index',
      'van-button': 'vant-weapp/dist/button/index',
      'van-icon': 'vant-weapp/dist/icon/index',
      'van-radio': 'vant-weapp/dist/radio/index',
      'van-radio-group': 'vant-weapp/dist/radio-group/index',
      'van-picker': 'vant-weapp/dist/picker/index',
      'van-datetime-picker': 'vant-weapp/dist/datetime-picker/index'
    }
  },
  created () {
    // 调用API从本地缓存中获取数据
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // eslint-disable-next-line

    console.log('app created and cache logs by setStorageSync')
  }
}
</script>

<style>
page {
  background-color: rgb(246,246,246);
  height: 100%;
}
div {
  width: 100%;
}
.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  /* margin-bottom: 70px; */
  /* background-color: #FFF   */
}
i {
  display: inline-block;
}
.split {
  border: 1px solid rgb(248,248,248);
}
.foot {
  position: fixed;
  bottom: 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #fff;
  font-size: 14px;
  color:rgb(51,51,51);
  border-top: 1px solid #eee;
}
.foot>div {
  padding: 10px;
  text-align: center;
  position: relative;
}
.foot i {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}
</style>
